package com.link2room.rodimus.entity;

import com.link2room.common.entity.BaseEntity;
import org.hibernate.annotations.DynamicInsert;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by VegetaKo on 2017/2/28.
 */
@DynamicInsert
@Entity
@Table(name = "comment_brandwisdom_send")
public class CommentBrandwisdomSend extends BaseEntity {
    private String memberNo;
    private String issueid;
    private String callid;
    private String l2RNo;
    private String sendSta;
    private String reciveSta;
    private String awardRule;

    @Basic
    @Column(name = "menmber_no", nullable = true, length = 32)
    public String getMemberNo() {
        return memberNo;
    }

    public void setMemberNo(String menmberNo) {
        this.memberNo = menmberNo;
    }

    @Basic
    @Column(name = "issueid", nullable = true, length = 16)
    public String getIssueid() {
        return issueid;
    }

    public void setIssueid(String issueid) {
        this.issueid = issueid;
    }

    @Basic
    @Column(name = "callid", nullable = true, length = 16)
    public String getCallid() {
        return callid;
    }

    public void setCallid(String callid) {
        this.callid = callid;
    }

    @Basic
    @Column(name = "l2r_no", nullable = true, length = 32)
    public String getL2RNo() {
        return l2RNo;
    }

    public void setL2RNo(String l2RNo) {
        this.l2RNo = l2RNo;
    }

    @Basic
    @Column(name = "send_sta", nullable = true, length = 8)
    public String getSendSta() {
        return sendSta;
    }

    public void setSendSta(String sendSta) {
        this.sendSta = sendSta;
    }

    @Basic
    @Column(name = "recive_sta", nullable = true, length = 8)
    public String getReciveSta() {
        return reciveSta;
    }

    public void setReciveSta(String reciveSta) {
        this.reciveSta = reciveSta;
    }

    @Basic
    @Column(name = "award_rule", nullable = true, length = 16)
    public String getAwardRule() {
        return awardRule;
    }

    public void setAwardRule(String awardRule) {
        this.awardRule = awardRule;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CommentBrandwisdomSend that = (CommentBrandwisdomSend) o;

        if (memberNo != null ? !memberNo.equals(that.memberNo) : that.memberNo != null) return false;
        if (issueid != null ? !issueid.equals(that.issueid) : that.issueid != null) return false;
        if (callid != null ? !callid.equals(that.callid) : that.callid != null) return false;
        if (l2RNo != null ? !l2RNo.equals(that.l2RNo) : that.l2RNo != null) return false;
        if (sendSta != null ? !sendSta.equals(that.sendSta) : that.sendSta != null) return false;
        if (reciveSta != null ? !reciveSta.equals(that.reciveSta) : that.reciveSta != null) return false;
        if (awardRule != null ? !awardRule.equals(that.awardRule) : that.awardRule != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = memberNo != null ? memberNo.hashCode() : 0;
        result = 31 * result + (issueid != null ? issueid.hashCode() : 0);
        result = 31 * result + (callid != null ? callid.hashCode() : 0);
        result = 31 * result + (l2RNo != null ? l2RNo.hashCode() : 0);
        result = 31 * result + (sendSta != null ? sendSta.hashCode() : 0);
        result = 31 * result + (reciveSta != null ? reciveSta.hashCode() : 0);
        result = 31 * result + (awardRule != null ? awardRule.hashCode() : 0);
        return result;
    }
}
